package com.lyw.idempotentstarter.bean;

/**
 * 存储类型对象
 */
public interface IdempotentStorageService {
    /**
     * 通过path与token进行存储与删除
     *
     * @param tenantKey
     * @param employeeId
     * @param path 存储路径
     * @param token 存储值
     * @return
     */
    boolean storage(String tenantKey, Long employeeId, String path, String token);

    boolean del(String tenantKey, Long employeeId, String path, String token);

    boolean storage(String tenantKey, String path, String token);

    boolean del(String tenantKey, String path, String token);
}
